const Http = require('./Http');
class KindHttp extends Http {
    // 请求汇总数据
    // static getKinds() {
    //     return this.request('/api/kinds');
    // }
    //以下皆为请求表
    static getVegetables(){
        return this.request('/api/kind/vegetables');
    }
    static getFruter(){
        return this.request('/api/kind/fruter');
    }
    static getMeat(){
        return this.request('/api/kind/meat');
    }
    static getDrink(){
        return this.request('/api/kind/drink');
    }
    static getSnacks(){
        return this.request('/api/kind/snacks');
    }
    static getGrainAndOil(){
        return this.request('/api/kind/grainAndOil');
    }
    static getClean(){
        return this.request('/api/kind/clean');
    }
    static getDailySupplies(){
        return this.request('/api/kind/dailySupplies');
    }
    static getFlower(){
        return this.request('/api/kind/flower');
    }

    // 请求用户收藏表
    static getUserCollect(){
        return this.request('/user/collect');
    }
}

module.exports = KindHttp;